import request from '../utils/request'
import { HttpMethod } from '../utils/http'

export default {
  // 获取验证码
  getCodeImg () {
    return request({
      url: '/code',
      method: HttpMethod.GET
    })
  },
  // 登录
  login (data) {
    return request({
      url: '/auth/member/login',
      method: HttpMethod.POST,
      data
    })
  },
  // 注册
  register (data) {
    return request({
      url: '/auth/member/register',
      method: HttpMethod.POST,
      data
    })
  },
  // 退出
  logout () {
    return request({
      url: '/auth/member/logout',
      method: HttpMethod.DELETE
    })
  }


}


